package com.charm.information.api

import com.charm.watercress.entity.BookEntity
import com.charm.watercress.entity.FilmEntity
import com.charm.watercress.entity.WsEntity
import io.reactivex.Observable
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

/**
 * Created by tools on 2018/1/3.
 */
interface WatercressService {
    //    @Headers("Content-Type: application/json", "Accept: application/json")
    @GET("/movie/douban")
    fun filmList(@Query("apikey") apiKey: String, @Query("kw") kw: String): Observable<WsEntity<List<FilmEntity>>>

    @GET("/book/douban")
    fun bookList(@Query("apikey") apiKey: String, @Query("kw") kw: String, @Query("pageToken") pageToken: Int): Observable<WsEntity<List<BookEntity>>>
}